<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../../res/js/Tools.js"></script>
    <script src="../../res/js/jquery-3.1.1.min.js" type="text/javascript" charset="utf-8"></script>
    <link rel="stylesheet" href="../../res/layui/css/layui.css" media="all">
    <style>
        .layui-form-item{
            margin-top:20px;
        }
    </style>
    <script>
        $(function(){
            var id = getQueryString("id");
            console.info(id);
            var url = "../../AtsSchemeAction/finbyid";
            var data = {id:id};
        $.post(url,data,function(obj){
            $("#saName").val(obj.schemeName);
            $("#title").html("附件：");
            $("#download").html('<a href='+obj.file1+' class="layui-btn layui-btn-sm">方案1</a>');
            if(obj.file2!=null){
                $("#download").append('<a href='+obj.file2+' class="layui-btn layui-btn-sm" >方案2</a>');
            }
            if(obj.file3!=null){
                $("#download").append('<a href='+obj.file3+' class="layui-btn layui-btn-sm">方案3</a>');
            }

        },"json")
        })
    </script>
</head>
<body>
<div class="layui-form-item">
    <label class="layui-form-label">方案名称</label>
    <div class="layui-input-block">
        <input type="text" id="saName" lay-verify="title" autocomplete="off" class="layui-input layui-disabled" disabled>
    </div>
</div>
<div class="layui-form-item">
    <label class="layui-form-label" id="title"></label>
    <div class="layui-input-block" id="download">

    </div>
</div>

</body>
</html>